$diagramSize: 300px;
$titleCircleSize: 20px;


.container {
    padding: 200px;
    height: 90vh;
    background-color: aqua;
}

.diagram {
    width: $diagramSize;
    height: $diagramSize;
    margin: auto;
    background: linear-gradient(to right, black 50%, white 50%);
    border-radius: 50%;
    position: relative;
    animation: rotate 3s forwards infinite linear;
}

%titleCircle {
    width: 50%;
    height: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background-color: red;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;

    &::before {
        content: '';
        width: 25%;
        height: 25%;
        border-radius: 50%;
    }
}

.circleOne {
    top: 0;
    @extend %titleCircle;
    background: black;

    &::before{
        background-color: white;
    }
}

.circleTwo {
    top: 50%;
    @extend %titleCircle;
    background: white;
    &::before{
        background-color: black;
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}